<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="./vue.js"></script>
</head>
<body>
    <div id="app">
    <blog-post></blog-post>
    </div>
</body>

<script>
 Vue.component('blog-post', {
  props: ['post'],
  template: `
    <div class="blog-post">
      <h3>{{title}}</h3>
      <button @click="handleClick()">
        Enlarge text
      </button>
      <div ></div>
    </div>
  `,
  data(){
        return{
          title:"你好组件",
        }
  },
  methods:{
    handleClick(){
   console.log("ddd");

    }

  }


})
var vm=new Vue({
 el:"#app",
 data:{
    checkedNames:[],
    picked:"",
    selected: 'A',

 }
 
});

</script>
</html>